package com.lzw.okgoutils.http.otherutils;

import android.content.Context;

import org.json.JSONObject;

/**
 * json解析工具类
 */
public class JsonUtils {
    public static JSONObject getActionJsonObj(Context context, String fileName) {
        String actionJson = FileUtils.readFile(context, fileName);
        try {
            return new JSONObject(actionJson);
        } catch (Exception e) {
            e.printStackTrace();
            LogUtil.printExceptions(e);
        }
        return null;
    }
}
